@extends('layouts.csite')
@section('body')
    <div class="container">
        <div class="row">
            @include('csite.nav')
            <div class="col-md-8 col-md-offset-2">
                <div class="page-header text-primary">
                    <h1>已注册的企业<span class="badge">{{ $companies->count() }}</span></h1>
                </div>
                <table class="table table-hover table-bordered">
                    <tr>
                        <td>序号</td>
                        <td>名称</td>
                        <td>地址</td>
                        <td>电话</td>
                        <td>软件版本</td>
                    </tr>
                    @foreach($companies as $company)
                        <tr>
                            <td>{{ $loop->iteration }}</td>
                            <td>{{ $company->name }}</td>
                            <td>{{ $company->address }}</td>
                            <td>{{ $company->phone }}</td>
                            <td>{{ $company->softname }}</td>
                        </tr> 
                    @endforeach
                </table>
            </div>
        </div>
    </div>
@endsection